package model.enums;

/**
 * Represents a season.
 * @author dielson
 *
 */
public enum Season {
	SPRING, SUMMER, AUTUMN, WINTER;

	/**
	 * Returns the next season.
	 * @param season the current season
	 * @return the season that comes after the current season
	 */
	public static Season getNext(Season season) {
		Season nextSeason;
		switch (season) {
		case SPRING : nextSeason = SUMMER; break;
		case SUMMER : nextSeason = AUTUMN; break;
		case AUTUMN : nextSeason = WINTER; break;
		case WINTER : nextSeason = SPRING; break;
		default : nextSeason = SPRING;
		}

		return nextSeason;
	}

}